package com.sunk.fenbushishiwu.dtp.xa;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class AP {
    public Connection getRmAccountConn(){
        try{
            Connection conn = DriverManager.getConnection("jdbc:mysql://118.25.103.130:3307/xa_account?characterEncoding=utf8&useSSL=false&autoReconnect=true","root","123456");
            return conn;
        }catch (SQLException e){
            e.printStackTrace();
        }
        return null;
    }
    public Connection getRmRedConn(){
        try{
            Connection conn = DriverManager.getConnection("jdbc:mysql://118.25.103.130:3308/xa_red_account?characterEncoding=utf8&useSSL=false&autoReconnect=true","root","123456");
            return conn;
        }catch (SQLException e){
            e.printStackTrace();
        }
        return null;
    }
}
